﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ly2
{
    class DeliveryRobot:Robot
    {
        public int hours { get; set; }

        public DeliveryRobot( string name,int hours)
            :base(name)
        {
            this.hours = hours;
        }

        public DeliveryRobot()
        {
        }

        public override void Working()
        {
            Console.WriteLine("机器人类型：{0}，工作时长{1}",base.name,this.hours);
        }
    }
}
